package com.oydsoft.api.system;

import com.oydsoft.common.model.BaseResponse;
import com.oydsoft.common.model.BaseServceApi;
import com.oydsoft.dto.system.dto.S03Dto;
import com.oydsoft.dto.system.vo.S03Vo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import com.oydsoft.dto.system.po.S03;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api(tags="菜单表服务",description = "")
@RequestMapping("/s03")
public interface S03Service extends BaseServceApi<S03, S03Dto,S03Vo> {

    @GetMapping("/list")
    @ApiOperation(value = "菜单表list接口")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "菜单名称", name = "s0304", required = false, example = "测试菜单")
    })
    @Override
    BaseResponse<List<S03Vo>> getList(S03Dto s03Dto);

    @ApiOperation(value = "查看一个菜单数据")
    @GetMapping("/s03")
    @Override
    BaseResponse<List<S03>> read(String id);

    @ApiOperation(value = "新增一个菜单数据")
    @PostMapping("/s03")
    @Override
    BaseResponse<List<S03>> add(S03 s03);

    @ApiOperation(value = "更新一个菜单数据")
    @PutMapping("/s03")
    @Override
    BaseResponse<List<S03>> update(S03 s03);

    @ApiOperation(value = "删除一个菜单数据")
    @DeleteMapping("/s03")
    @Override
    BaseResponse<List<S03>> delete(String id);

    @ApiOperation(value = "停用一个菜单数据")
    @DeleteMapping("/s03/stop")
    @Override
    BaseResponse<List<S03>> stop(String id);
}
